package com.epfresh.supplier.entity;

import java.util.List;

import multitype.suspension.ISuspensionInterface;

public class Category implements ISuspensionInterface {
    private String iconId;
    private List<CategoryNames> names;
    private String name;
    private String id;
    private String type;
    private boolean moml;

    public boolean isMoml() {
        return moml;
    }

    public void setMoml(boolean moml) {
        this.moml = moml;
    }
    private String parentName;

    private List<Category> item;

    private boolean select;

    private int position;

    private int cnt;

    private String key;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getCnt() {
        return cnt;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }

    public List<Category> getItem() {
        return item;
    }

    public void setItem(List<Category> item) {
        this.item = item;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public boolean isSelect() {
        return select;
    }

    public void setSelect(boolean select) {
        this.select = select;
    }

    public List<CategoryNames> getNames() {
        return names;
    }

    public void setNames(List<CategoryNames> names) {
        this.names = names;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public boolean isCategoryType(){
        return "1".equals(type);
    }
    @Override
    public String toString() {
        return "Category{" +
                "names=" + names +
                ", name='" + name + '\'' +
                ", id=" + id +
                '}';
    }

    @Override
    public boolean isShowSuspension() {
        return true;
    }

    @Override
    public boolean isSuspensionTitle() {
        return true;
    }


    @Override
    public String getSuspensionTag() {
        return name;
    }

    @Override
    public String getSuspensionTagId() {
        return id;
    }
}
